package ketang.xiaoxue;

public class Student {
    String xm;
    String xh;
    String xx;
/*
无参数的构造方法也叫默认构造
 */
    public Student(){
        System.out.println("student类的默认构造方法运行了");
    }
    String study(){
        return "学习使我快乐";
    }
    Student(String xh,String xm,String xx){
        this.xh=xh;
        this.xm=xm;
        this.xx=xx;
        System.out.println("带参数的运行了");
    }

}
